﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="clientesGrid.aspx.cs" Inherits="Gridviews_clientesGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <script language='javascript'>
             
            function cancelar(){
                window.close();
            }
            
        </script>
    <table width="100%">
        <tr>
            <td align="center">
            <br />
            <br />
                <asp:Label ID="Label1" runat="server" Text="Nombre: "></asp:Label>
                <asp:TextBox ID="funcionario" runat="server"></asp:TextBox>
                &nbsp;
            </td>
        </tr>
        
        <tr>
           <td align="right">
               <asp:ImageButton ID="buscar" runat="server" Height="58px" 
                   ImageUrl="~/images/buscar.png"  
                   ToolTip="buscar funcionario" />
               <asp:ImageButton ID="cancelar" runat="server" Height="53px" 
                   ImageUrl="~/images/cancelar.jpeg" Width="61px" />
           </td>
        </tr>    
        <tr>
        
        <td align="center">
        
        <asp:GridView ID="GridClientes" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="cod_cliente" DataSourceID="SqlDataSource1" 
            ForeColor="#333333" GridLines="None" AllowPaging="True" 
                OnRowCommand="GridViewf_OnRowCommand">
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="cod_cliente" HeaderText="cod_cliente" 
                    ReadOnly="True" SortExpression="cod_cliente" />
                <asp:BoundField DataField="cod_tipo_cliente" HeaderText="cod_tipo_cliente" 
                    SortExpression="cod_tipo_cliente" />
                <asp:BoundField DataField="cod_persona" HeaderText="cod_persona" 
                    SortExpression="cod_persona" />
                    <asp:TemplateField>
                     <ItemTemplate>
                      <asp:ImageButton ID="ImageButton1" runat="server" CommandName="Aceptar" ImageUrl="~/images/seleccionar.png" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"
                         />
                         </ItemTemplate>
                       </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:cetSistemasConnectionString %>" 
            SelectCommand="SELECT * FROM [cliente]">
        </asp:SqlDataSource>
    </td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>
